/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Microsoft
 * Date: 2022-12-20
 * Time: 11:45
 */
class Person{
    int age;
    String name;

    public void eat() {
        System.out.println(name + "正在吃饭");
    }
    public Person(int age,String name) {
        this.show();
        this.name = name;
        this.age = age;
    }
    public void show () {
        System.out.println("姓名:"+name+" 年龄："+name);
    }
}
public class Test {
    public static void main(String[] args) {
        Person person = new Person(20,"123");
    }
}
